package org.basa.consumoplantelcel;

public class Printer {
	
	private String messageToPrint;
	
	Printer(String messageToPrint){
		this.messageToPrint = messageToPrint;
	}
	
	public void doScreenPrint(){
		if(this.messageToPrint.isEmpty()){
			System.err.println("Error, Nothing to print");
		}else{
			System.out.println(this);
		}
	}
	
	@Override
	public String toString() {
		return this.messageToPrint;
	}

}
